package com.lm.batch.entry;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("customer")
public class Customer implements Serializable {

    // ✅ 必须要有的无参构造方法
    public Customer() {
    }

    public Customer(Long id, String name, String email) {
        this.id = id;
        this.name = name;
        this.email = email;
    }

    @TableId(value = "id")
    private Long id;

    @TableField("name")
    private String name;

    @TableField("email")
    private String email;
}
